
using TMPro;
using UnityEngine.UI;

namespace UI
{
    public class TipsPanel : BasePanel
    {
        public Button btnOK;
        public Button btnCancel;
        public TextMeshProUGUI text;

        private void Awake()
        {
            btnOK.onClick.AddListener(OnBtnOK);
            btnCancel.onClick.AddListener(OnBtnCancel);
        }

        public void OnBtnOK()
        {
            ClosePanel();
        }
        
        public void OnBtnCancel()
        {
            ClosePanel();
        }

        public void SetText(string st){
            text.text = st;
        }
    }
}
